package com.course.redis.model.pojo;

import com.course.redis.model.base.BaseModel;

/**
 * @PROJECT_NAME: course
 * @DESCRIPTION:
 * @Author: 涂玄武
 * @DATE: 2021/7/9 14:06
 */
public class UserPoints extends BaseModel {

    /**
     * 关联用户ID
     */
    private Integer fkUserId;

    /**
     * 积分
     */
    private Integer points;

    /**
     * 积分类型：0-签到，1-关注好友，2-添加评论，3-点赞商户
     */
    private Integer types;

    public UserPoints() {
    }

    public UserPoints(Integer fkUserId, Integer points, Integer types) {
//        this.setId(id);
        this.fkUserId = fkUserId;
        this.points = points;
        this.types = types;
    }

    public Integer getFkUserId() {
        return fkUserId;
    }

    public void setFkUserId(Integer fkUserId) {
        this.fkUserId = fkUserId;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getTypes() {
        return types;
    }

    public void setTypes(Integer types) {
        this.types = types;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("UserPoints{");
        sb.append("fkUserId=").append(fkUserId);
        sb.append(", points=").append(points);
        sb.append(", types=").append(types);
        sb.append('}');
        return sb.toString();
    }
}
